
local mt = ac.skill['金蟾送宝']

local fishs_name = {'苹果','核桃','榴莲'}
function mt:on_add()
    local hero = self.owner
    self:gc(hero:event '单位-死亡'(function(_,_,source)
        if math.random(100)<=50 then
            source.owner:notify('玩家-发工资',source.owner)
        else
            local name = table.random(fishs_name)
            source:add_item(name)
        end
    end))
end
